/**
 * 功能描述 行编辑
 */

define(function (require, exports, module){
	var EditGrid=require("editgrid");
	var store =require("store");
	var activeUser = store.get("user");
	
	var instance = {
			initComponent: function (params,widget){
				var optiongrid = new EditGrid({
					parentNode:".J-editgrid",
					autoRender:false,
					model:{
						id:"optiongrid",
						allowAdd:false,
						columns:[{
							name : "personalInfo.idNumber",
							label : "证件号",
						},{
							name : "personalInfo.name",
							label : "姓名",
						},{
							name : "personalInfo.sex",
							label : "性别",
							format : function(data, row) {
								return data.value || "";
							},
						},{
							name : "contactName",
							label : "紧急联系人"
						},{
							name : "personalInfo.mobilePhone",
							label : "联系方式",
						}]
					}
				});
				widget.set("optiongrid",optiongrid);
			}
	};
	module.exports = instance;
});
